<?php

require('init.php');
require(LIBWWWDIR . '/header.php');
require(LIBWWWDIR . '/forms.php');

//$cabeceras ='From: becerraji87@gmail.com' . "\r\n" ;
$cabeceras = 'From: becerraji87@gmail.com' . "\r\n" .
    'Reply-To: becerraji87@gmail.com' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();
mail("becerraji87@gmail.com", "Prueba de correo", "esto es una prueba",$cabeceras);




/*
echo $login = $_REQUEST['id'];
 

$conexion = connect();
$q = "SELECT * FROM solic_account WHERE login = '".$login."'";

	print_r($answ = mysql_query($q, $conexion) or die(mysql_error()));
	echo "XXXXX".mysql_num_rows($answ)."XXXXX";
	$row = mysql_fetch_array($answ); 
	
	echo "<table class=\"list sortable\">\n<thead>\n" .
		"<tr><th scope=\"col\">Date</th><td>" .htmlspecialchars($row['date']).'</td></tr>'.
		"<tr><th scope=\"col\">Name</th><td>".htmlspecialchars($row['name']).'</td></tr>'.
		"<tr><th scope=\"col\">Email</th><td>" .htmlspecialchars($row['email']).'</td></tr>'.
		'<tr><form action="request.php?id="'.htmlspecialchars($row['login']).' method="post">'.
		'<th scope=\"col\">Answer</th><td>'.addRadioButton('accept','', 1).
		'<label for="accept">Accept</label>'.
			addRadioButton('denny','', 0).'<label for="denny">Denny</label></td>'.
		"</tr></thead><th>".addSubmit('Save').'</th></form>'; 
	
	//echo ;
	
	
		/*echo '<tr><td>'.htmlspecialchars($row['date']).'</td><td>'.
			htmlspecialchars($row['name']).'</td><td>'.
			htmlspecialchars($row['email']).'</td>'.
			'<form action="requests.php" method="post">'.
			'<td>'.addRadioButton('accept','', 1).'<label for="data_0__post_1">Accept</label>'.
			addRadioButton('denny','', 0).'<label for="data_0__post_0">Denny</label></td>';	 
	
	   echo '<tr>'.addSubmit('Submit solution', 'submit',
		"return confirm(getUploadConfirmString());").'</tr></form>';*/


	




?>
